import { BASE_URL } from './index.js'
import http from '../utils/http.js'

export const getTeamOne = userId => http.request('GET', `${BASE_URL}/v1/api/setting/tj/queue/zhu/${userId}/1`)

export const getTeamTwo = userId => http.request('GET', `${BASE_URL}/v1/api/setting/tj/queue/zhu/${userId}/2`)

export const getTeamThree = userId => http.request('GET', `${BASE_URL}/v1/api/setting/tj/queue/zhu/${userId}/3`)

export const getTreeData = ({userId, id}) => http.request('GET', `${BASE_URL}/v1/api/setting/tj/user/queue/${userId}/${id}`)

export const getTeamIds = userId => http.request('GET', `${BASE_URL}/v1/api/users/queue/${userId}`)